package com.fintech.common.enums;

/**
 * 类说明：返回状态枚举类
 * @date 2017年3月11日
 * @author SHAOYUN
 *
 **/

public enum RespStatus {

	SUCCESS(100000,"请求成功，结果不为null"),
	NODATA(100010,"请求成功，结果为null"),
	DEFAULT(100030,"请求成功结果为失败"),
	DATABASE_ERROR(100020,"数据存库失败"),
    REQ_ERROR(200000,"请求失败"),
	ERROR(-1,"其它异常"),
	IDENTITY_DISCREPANCY(-2,"社保数据或者公积金数据入库的身份不相符"),
	DISABLE(-999,"接口已经停用"),
	PROCESSING(200010,"请求处理中");
	
    private int code;
    private String msg;

    private RespStatus(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }
}
